function [ dilatedBW ] = dilateEcg( BW )
% Performing image dilation of the ECG line to fill in discontinuities so
% that proper segmentation can occur using region properties

structElem = strel('diamond', 3);

dilatedBW = imdilate(BW, structElem);

end

